class BaseTrigger(object):
    def __init__(self, app=None):
        print "created base trigger"
        self.app = app

    def __call__(self, environ, start_response):
        print "calling base trigger"
        for k, x in environ.items():
            print "[%s] %s" % (k, x)
        result = start_response('404 Not Found', [('Content-type', 'text/html')])
        return ['<html><head><title>404</title><body>trigger not found</body></html>']
            
